-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: deprecate usage of cursor.execute
statements in favor of the in class implementation of execute
.
#60748
base: main
Are you sure you want to change the base?
Conversation
04fee59
to
e9cbf63
Compare
Hello @WillAyd.
This should be no problem because we can always wrap that execution around a Would you mind taking a look and LMK what you think while in draft ? |
e9cbf63
to
ff41294
Compare
9e0f436
to
804fb3e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment but generally this looks good. @mroeschke can you take a look as well?
…the in class implementation of `execute`.
beb8ee7
to
97939df
Compare
ab1b946
to
71e0d24
Compare
…s into refactor-io-sql-execute
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comment but otherwise this lgtm. @mroeschke do you mind taking a look as well?
@@ -76,6 +76,8 @@ Other enhancements | |||
- Support passing a :class:`Iterable[Hashable]` input to :meth:`DataFrame.drop_duplicates` (:issue:`59237`) | |||
- Support reading Stata 102-format (Stata 1) dta files (:issue:`58978`) | |||
- Support reading Stata 110-format (Stata 7) dta files (:issue:`47176`) | |||
- Refactor classes in ``pandas.io.sql`` to favor their own implementation of ``execute`` instead of relying on driver's ``execute``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appreciate the note but we should try and make it interesting to non-developers that are just using the library. Maybe we can just combine these into:
- Errors occurring during SQL I/O will now throw a generic pandas.DatabaseError instead of the raw Exception type from the underlying driver manager library
- ```
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.